package com.github.rxyor.example.transaction.goods.business;

import com.github.rxyor.example.transaction.goods.model.entity.GoodsDO;
import java.math.BigDecimal;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/9/4 周三 18:00:00
 * @since 1.0.0
 */
public interface GoodsBusiness {

    GoodsDO risePriceByReadUncommitted(Long id, BigDecimal floatedPrice);

    GoodsDO risePriceByReadCommitted(Long id, BigDecimal floatedPrice);

    GoodsDO subtractStockById(Long id);

    void highConcurrencyUpdate(int threads);
}
